//
//  HUB.m
//  AF3.0WithYTK
//  Created by tianXin on 16/10/27.
//

#import "HUB.h"
@implementation HUB

+ (HUB*)shareHub{
    static dispatch_once_t once_token;
    static HUB *hub = nil;
    dispatch_once(&once_token, ^{
        hub = [[self alloc] initWithFrame:CGRectZero];
    });
    return hub;
}

- (void)requestWillStart:(id)request{
    [MBProgressHUD showHUDAddedTo:WINDOW animated:YES];
}

- (void)requestDidStop:(id)request{
    [MBProgressHUD hideHUDForView:WINDOW animated:YES];
}

@end
